package xiaolong.zhou.spring_demo.Pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Recharge {
    @NotEmpty(message = "充值金额不存在")
    @NotNull(message = "充值金额不存在")
    private Float price;
}
